using SqlSugar;

namespace LowCoding.Domain.Entity
{
    /// <summary>
    /// 角色表
    /// </summary>
    [SugarTable("SYSROLE")]
    public class SysRole
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
        public string Id { get; set; }

        /// <summary>
        /// 角色代码
        /// </summary>
        [SugarColumn(ColumnName = "RleCode")]
        public string RleCode { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        [SugarColumn(ColumnName = "RleName")]
        public string RleName { get; set; }

        /// <summary>
        /// 是否管理员角色
        /// </summary>
        [SugarColumn(ColumnName = "RleIsp")]
        public string RleIsp { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(ColumnName = "RleOrder")]
        public int RleOrder { get; set; }

        /// <summary>
        /// 角色企业类型
        /// </summary>
        [SugarColumn(ColumnName = "RleType")]
        public string RleType { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Remark")]
        public string Remark { get; set; }

        /// <summary>
        /// 新增时间
        /// </summary>
        [SugarColumn(ColumnName = "Created", IsOnlyIgnoreUpdate = true)]
        public DateTime? Created { get; set; }

        /// <summary>
        /// 新增人员
        /// </summary>
        [SugarColumn(ColumnName = "Creator", IsOnlyIgnoreUpdate = true)]

        public string Creator { get; set; } = "1号测试管理员";

        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "Lastmodified")]
        public DateTime? Lastmodified { get; set; }

        /// <summary>
        /// 修改人员
        /// </summary>
        [SugarColumn(ColumnName = "Lastmodifier")]
        public string Lastmodifier { get; set; } = "2号管理员";

        /// <summary>
        /// 是否删除(1 为删除  0和空 为 未删除)
        /// </summary>
        [SugarColumn(ColumnName = "Isdel", IsOnlyIgnoreUpdate = true)]
        public string Isdel { get; set; }

        /// <summary>
        /// 修改次数
        /// </summary>
        [SugarColumn(ColumnName = "Version")]
        public int Version { get; set; }
    }
}